<?php

declare(strict_types=1);

namespace App\CustHub\Constants;

use App\Common\Constants\AbstractBaseConstants;
use Hyperf\Constants\Annotation\Constants;

/**
 * 企业标签同步任务状态
 */
#[Constants]
class SyncTaskStatusConstants extends AbstractBaseConstants
{
    /**
     * @Message("等待中")
     */
    public const WAITING = 0;

    /**
     * @Message("进行中")
     */
    public const RUNNING = 1;

    /**
     * @Message("同步成功")
     */
    public const SUCCESS = 2;

    /**
     * @Message("同步失败")
     */
    public const FAILURE = 3;

    /**
     * 获取进行中的状态
     * @return int[]
     */
    public static function getInProcessStatus(): array
    {
        return [
            self::WAITING,
            self::RUNNING
        ];
    }
}